1 /*
2  * To change
this license header, choose License Headers in Project Properties.
3  * To change
this template file, choose Tools | Templates
4  * and open the template
in the editor.
5  */
6
7 /**
8  *
9  * @author MY LAPI
10  */

11 public
class QuickDesh extends javax.swing.JFrame {
12
13     
/**
14      * Creates
new form QuickDesh
15      */

16     
public QuickDesh() {
17         initComponents();
18     }
19
20     
/**
21      * This method
is called from within the constructor to initialize the form.
22      * WARNING: Do NOT modify
this code. The content of this method is always
23      * regenerated
by the Form Editor.
24      */

25     @SuppressWarnings(
"unchecked")
26     
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
27     
private void initComponents() {
28
29         jLabel1 =
new javax.swing.JLabel();
30         jButton2 =
new javax.swing.JButton();
31         jButton3 =
new javax.swing.JButton();
32         jButton4 =
new javax.swing.JButton();
33         jButton5 =
new javax.swing.JButton();
34
35         setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
36
37         jLabel1.setFont(
new java.awt.Font("Arial Unicode MS", 0, 24)); // NOI18N
38         jLabel1.setForeground(
new java.awt.Color(255, 0, 153));
39         jLabel1.setText(
"Quick DeshBoard");
40
41         jButton2.setFont(
new java.awt.Font("Arial Unicode MS", 0, 15)); // NOI18N
42         jButton2.setText(
"USER LOGIN");
43         jButton2.addActionListener(
new java.awt.event.ActionListener() {
44             
public void actionPerformed(java.awt.event.ActionEvent evt) {
45                 jButton2ActionPerformed(evt);
46             }
47         });
48
49         jButton3.setFont(
new java.awt.Font("Arial Unicode MS", 0, 15)); // NOI18N
50         jButton3.setText(
"USER REG");
51         jButton3.addActionListener(
new java.awt.event.ActionListener() {
52             
public void actionPerformed(java.awt.event.ActionEvent evt) {
53                 jButton3ActionPerformed(evt);
54             }
55         });
56
57         jButton4.setFont(
new java.awt.Font("Arial Unicode MS", 0, 15)); // NOI18N
58         jButton4.setText(
"EXIT");
59         jButton4.addActionListener(
new java.awt.event.ActionListener() {
60             
public void actionPerformed(java.awt.event.ActionEvent evt) {
61                 jButton4ActionPerformed(evt);
62             }
63         });
64
65         jButton5.setFont(
new java.awt.Font("Arial Unicode MS", 0, 15)); // NOI18N
66         jButton5.setText(
"ADMIN LOGIN");
67         jButton5.addActionListener(
new java.awt.event.ActionListener() {
68             
public void actionPerformed(java.awt.event.ActionEvent evt) {
69                 jButton5ActionPerformed(evt);
70             }
71         });
72
73         javax.swing.GroupLayout layout =
new javax.swing.GroupLayout(getContentPane());
74         getContentPane().setLayout(layout);
75         layout.setHorizontalGroup(
76             layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
77             .addGroup(layout.createSequentialGroup()
78                 .addContainerGap(
21, Short.MAX_VALUE)
79                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
80                     .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
81                         .addComponent(jLabel1)
82                         .addGap(
108, 108, 108))
83                     .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
84                         .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
85                             .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE,
157, javax.swing.GroupLayout.PREFERRED_SIZE)
86                             .addComponent(jButton5, javax.swing.GroupLayout.PREFERRED_SIZE,
157, javax.swing.GroupLayout.PREFERRED_SIZE))
87                         .addGap(
18, 18, 18)
88                         .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
89                             .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE,
157, javax.swing.GroupLayout.PREFERRED_SIZE)
90                             .addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE,
157, javax.swing.GroupLayout.PREFERRED_SIZE))
91                         .addGap(
22, 22, 22))))
92         );
93         layout.setVerticalGroup(
94             layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
95             .addGroup(layout.createSequentialGroup()
96                 .addContainerGap()
97                 .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE,
49, javax.swing.GroupLayout.PREFERRED_SIZE)
98                 .addGap(
55, 55, 55)
99                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
100                     .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE,
92, javax.swing.GroupLayout.PREFERRED_SIZE)
101                     .addComponent(jButton5, javax.swing.GroupLayout.PREFERRED_SIZE,
92, javax.swing.GroupLayout.PREFERRED_SIZE))
102                 .addGap(
18, 18, 18)
103                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
104                     .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE,
92, javax.swing.GroupLayout.PREFERRED_SIZE)
105                     .addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE,
92, javax.swing.GroupLayout.PREFERRED_SIZE))
106                 .addContainerGap(
22, Short.MAX_VALUE))
107         );
108
109         pack();
110     }
// </editor-fold>//GEN-END:initComponents
111
112     
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
113                 IBLog pb1=
new IBLog();
114                 QuickDesh pb2=
new QuickDesh();
115                 pb2.setVisible(
false);
116                 pb1.setVisible(
true);
117                 dispose();
118     }
//GEN-LAST:event_jButton2ActionPerformed
119
120     
private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton5ActionPerformed
121                 AdminLogin pb1=
new AdminLogin();
122                 QuickDesh pb2=
new QuickDesh();
123                 pb2.setVisible(
false);
124                 pb1.setVisible(
true);
125                 dispose();
126     }
//GEN-LAST:event_jButton5ActionPerformed
127
128     
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed
129         
130         IBReg pb1=
new IBReg();
131         QuickDesh pb2=
new QuickDesh();
132                 pb2.setVisible(
false);
133                 pb1.setVisible(
true);
134                 dispose();
135     }
//GEN-LAST:event_jButton3ActionPerformed
136
137     
private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton4ActionPerformed
138         System.exit(
0);
139     }
//GEN-LAST:event_jButton4ActionPerformed
140
141     
/**
142      * @param args the command line arguments
143      */

144     
public static void main(String args[]) {
145         
/* Set the Nimbus look and feel */
146         
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
147         
/* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
148          * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
149          */

150         
try {
151             
for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
152                 
if ("Nimbus".equals(info.getName())) {
153                     javax.swing.UIManager.setLookAndFeel(info.getClassName());
154                     
break;
155                 }
156             }
157         }
catch (ClassNotFoundException ex) {
158             java.util.logging.Logger.getLogger(QuickDesh.
class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
159         }
catch (InstantiationException ex) {
160             java.util.logging.Logger.getLogger(QuickDesh.
class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
161         }
catch (IllegalAccessException ex) {
162             java.util.logging.Logger.getLogger(QuickDesh.
class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
163         }
catch (javax.swing.UnsupportedLookAndFeelException ex) {
164             java.util.logging.Logger.getLogger(QuickDesh.
class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
165         }
166         
//</editor-fold>
167
168         
/* Create and display the form */
169         java.awt.EventQueue.invokeLater(
new Runnable() {
170             
public void run() {
171                 
new QuickDesh().setVisible(true);
172             }
173         });
174     }
175
176     
// Variables declaration - do not modify//GEN-BEGIN:variables
177     
private javax.swing.JButton jButton2;
178     
private javax.swing.JButton jButton3;
179     
private javax.swing.JButton jButton4;
180     
private javax.swing.JButton jButton5;
181     
private javax.swing.JLabel jLabel1;
182     
// End of variables declaration//GEN-END:variables
183 }


Gõ tìm kiếm nhanh...